package operation;

import book.Book;
import book.BookList;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 三石
 * Date: 2022-05-21
 * Time: 18:43
 */
public class DisplayOperation implements IOoperation{
    @Override
    public void work(BookList bookList) {
        System.out.println("显示图书！");
        int currentSize=bookList.getUsedSize();
        for (int i = 0; i <currentSize; i++) {
            Book book=bookList.getBook(i);
            System.out.println(book);
        }
    }
}
